Spread Windows Forms 15.0
FarPoint.Win.Chart Assembly / FarPoint.Win.Chart Namespace / GenericTypeConverter<T> Class / CanConvertTo Method / CanConvertTo(ITypeDescriptorContext,Type) Method
Type descriptor context
Type


In This Topic
    CanConvertTo(ITypeDescriptorContext,Type) Method
    In This Topic
    Determines whether the control can convert the context to the specified type.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Function CanConvertTo( _
       ByVal context As ITypeDescriptorContext, _
       ByVal destinationType As Type _
    ) As Boolean
    'Usage
     
    
    Dim instance As GenericTypeConverter(Of T)
    Dim context As ITypeDescriptorContext
    Dim destinationType As Type
    Dim value As Boolean
     
    value = instance.CanConvertTo(context, destinationType)
    public override bool CanConvertTo( 
       ITypeDescriptorContext context,
       Type destinationType
    )

    Parameters

    context
    Type descriptor context
    destinationType
    Type

    Return Value

    Boolean: true if the control can convert the context; false otherwise
    See Also